#include "ObjectManager.h"
#include "BaseObject.h"

CObjectManager::CObjectManager()
{
	ListRender.clear();
	m_VectorSpheres.push_back(CObjectFactory::GetInstance()->GetBaseObject());
}

void CObjectManager::Update( float fDT)
{

}


SLList<CBaseObject*> CObjectManager::CreateListForRender()
{

	if(!ListRender.IsEmpty())
	{
		ListRender.clear();
	}


	for(unsigned int index =0; index < m_VectorSpheres.size(); ++index)
	{
		ListRender.addHead(m_VectorSpheres[index]);
	}

	return ListRender;

}

void CObjectManager::Initialize()
{

}

void CObjectManager::Shutdown()
{
	m_VectorSpheres.clear();
	ListRender.clear();
}

